import request from '@/utils/request'

// --------  内容模版 --------

let BASE_ADDRESS = '/base/docModule'


//分页查询
export const getDocModuleListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}
//按类型查找
export const getDocModuleGetByTypeAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getByType`,
        method: 'get',
        params: data
    })
}

//删除模块
export const getDocModuleRemoveAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'get',
        params: data
    })
}

//删除模块
export const getDocModuleRemoveAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data
    })
}

//删除单个模块 🧨最后一个url是单个模块的id
export const getDocModuleRemoveSingleAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data
    })
}